def generate():
    uuid = None
    while not uuid:
        uuid = file('/proc/sys/kernel/random/uuid').readline().strip()
    return uuid
